import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '@/router/constant';

const menu: AppRouteModule = {
  name: 'dev:manager',
  path: '/dev/manager',
  component: LAYOUT,
  meta: {
    title: '在线开发',
    icon: 'ant-design:cloud-outlined',
    perms: ['admin', 'dev:manager'],
    orderNo: 101,
    component: 'LAYOUT',
  },
  children: [
    {
      name: 'dev:schemaGroup',
      path: '/dev/schemaGroup/index',
      component: () => import('@/views/dev/schemaGroup/index.vue'),
      meta: {
        title: '模型分组',
        icon: 'ant-design:group-outlined',
        orderNo: 99,
        perms: ['admin', 'dev:schemaGroup'],
        component: '/dev/schemaGroup/index',
        btns: {
          'dev:schemaGroup:page': '分页查询模型分组',
          'dev:schemaGroup:detail': '查看模型分组详情',
          'dev:schemaGroup:save': '添加模型分组',
          'dev:schemaGroup:update': '修改模型分组',
          'dev:schemaGroup:remove': '删除模型分组',
        },
      },
    },
    {
      name: 'dev:schema',
      path: '/dev/schema/index',
      component: () => import('@/views/dev/schema/index.vue'),
      meta: {
        title: '数据模型',
        icon: 'ant-design:cloud-outlined',
        orderNo: 100,
        perms: ['admin', 'dev:schema'],
        component: '/dev/schema/index',
        btns: {
          'dev:schema:page': '分页查询数据模型',
          'dev:schema:detail': '查看数据模型详情',
          'dev:schema:save': '添加数据模型',
          'dev:schema:update': '修改数据模型',
          'dev:schema:remove': '删除数据模型',
          'dev:schema:export': '导出数据模型',
          'btn:dev:schema:advSearch': '高级搜索按钮',
          'dev:schema:importTo': '导入数据模型',
          'dev:schema:downloadImportTemplate': '下载导入数据模型模板',
        },
      },
    },
  ],
};
export default menu;
